Optimal. Leaf size=46 \[ \frac{i a (a+i a \tan (c+d x))^{n-1} (e \sec (c+d x))^{2-2 n}}{d (1-n)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0563509, antiderivative size = 46, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.033, Rules used = {3493} \[ \frac{i a (a+i a \tan (c+d x))^{n-1} (e \sec (c+d x))^{2-2 n}}{d (1-n)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3493
Rubi steps
\begin{align*} \int (e \sec (c+d x))^{2-2 n} (a+i a \tan (c+d x))^n \, dx &=\frac{i a (e \sec (c+d x))^{2-2 n} (a+i a \tan (c+d x))^{-1+n}}{d (1-n)}\\ \end{align*}
Mathematica [A] time = 0.603248, size = 59, normalized size = 1.28 \[ -\frac{e^2 (a+i a \tan (c+d x))^n (e \sec (c+d x))^{-2 n} (\sec (c) \sin (d x) \sec (c+d x)+\tan (c)+i)}{d (n-1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.782, size = 0, normalized size = 0. \begin{align*} \int \left ( e\sec \left ( dx+c \right ) \right ) ^{2-2\,n} \left ( a+ia\tan \left ( dx+c \right ) \right ) ^{n}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 2.26599, size = 293, normalized size = 6.37 \begin{align*} \frac{{\left (-i \, a^{n} e^{2} - \frac{2 \, a^{n} e^{2} \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac{i \, a^{n} e^{2} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}}\right )} e^{\left (n \log \left (\frac{\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right ) + n \log \left (\frac{\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - 1\right ) + n \log \left (-\frac{2 i \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac{\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - 1\right ) - 2 \, n \log \left (-\frac{\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - 1\right )\right )}}{{\left (e^{2 \, n}{\left (n - 1\right )} - \frac{e^{2 \, n}{\left (n - 1\right )} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}}\right )} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.88639, size = 240, normalized size = 5.22 \begin{align*} \frac{\left (\frac{2 \, a e^{\left (2 i \, d x + 2 i \, c\right )}}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}\right )^{n} \left (\frac{2 \, e e^{\left (i \, d x + i \, c\right )}}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}\right )^{-2 \, n + 2}{\left (-i \, e^{\left (2 i \, d x + 2 i \, c\right )} - i\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{2 \,{\left (d n - d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (e \sec \left (d x + c\right )\right )^{-2 \, n + 2}{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]